package com.yunyike.service;

import java.util.List;

import com.yunyike.model.Recepient;

public interface IRecepientService {

	/*
	 * 添加收货地址
	 */
	public int addRecepient(Recepient recepient);
	
	/*
	 * 更新收货地址
	 */
	public int updateRecepient(Recepient recepient);
	
	/*
	 * 获取用户的收货地址
	 */
	public List<Recepient> findRecepientByUser(String userId);
	
	/*
	 * 根据用户id和地址id
	 * 获取收货地址
	 */
	public Recepient findByIdAndUserId(String recepientId,String userId);
	
	/*
	 * 选择收货地址
	 */
	public int chooseRecepient(Recepient recepient, String sessionId);
	
	/*
	 * 设置默认收货地址
	 */
	public int setDefaultRecepient(Recepient recepient);

	public boolean checkCurrentRecepient(Recepient recepientDB, String sessionId);
	
}
